|
|
|
|
|
|
|
In Listing 11.5, you inhìialize the three titles and then add legends and labels for the data points. Notice that you used the AutoInc property when adding the legends and labels. Notice, too, that you did not add legends and labels within the same For...Next loop. If you use the AutoInc property, you can only update one element type at a time. When you have more than one element array to update (data, legends, and labels), you must use separate loops for each element array. |
|
|
|
|
| |
|
|
|
|
It is very unlikely that you would use both a legend and data point labels in the same graph. You did this here to illustrate the unique behavior of the AutoInc property. |
|
|
|
|
|
|
|
|
|
|
Save and run the project. You can apply the text features of the graph control to any graph. After clicking a button to produce a graph, click the Titles button to add the text to the graph. Your screen should look like the one shown in Figure 11.8. |
|
|
|
|
|
|
|
|
Figure 11.8.
Adding titles, labels, and legends to a graph. |
|
|
|
|
|